package com.wzk.travelspringboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * @Author: WangZiKang
 * @Date: 2025/1/4 21:54
 */

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_user")
public class User extends BaseEntity implements Serializable{

    private static final long serialVersionUID = 1L;

    //用户id
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    //用户状态
    private Integer state;

    //昵称
    private String nickName;

    //用户密码
    private String password;

    //用户角色
    private Integer role;

    //用户手机
    private String phone;

    //用户邮箱
    private String email;

    //用户性别
    private Integer sex;

    //用户年龄
    private Integer age;

    //用户头像url
    private String avatar;
}
